#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   6.py
@Time    :   2020/03/15 19:15:07
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here
# 前面2个元素为0，1，输出100以内的斐波那契数列;

fibonacci = [0, 1]
elem = 1
tmp = fibonacci[elem]+fibonacci[elem-1]
while(tmp < 100):
    fibonacci.append(tmp)
    elem+=1
    tmp = fibonacci[elem]+fibonacci[elem-1]
print(fibonacci)